﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Web;

namespace Archives.Mapping
{
    public class WKF_WorksheetMap : EntityTypeConfiguration<WKF_Worksheet>
    {
        public WKF_WorksheetMap()
        {
            // Primary Key
            this.HasKey(t => t.WorksheetID);
            // Properties
            //                
            this.Property(t => t.WorksheetID)
                .IsRequired()
                .HasMaxLength(50)
                .HasColumnName("WorksheetID");
            //                
            this.Property(t => t.WorksheetName)
                .IsRequired()
                .HasMaxLength(50)
                .HasColumnName("WorksheetName");
            //                
            this.Property(t => t.WorkbookID)
                .IsRequired()
                .HasColumnName("WorkbookID");
            //                
            this.Property(t => t.CreateTime)
                .IsRequired()
                .HasColumnName("CreateTime");
            //                
            this.Property(t => t.UpdateTime)
                .IsRequired()
                .HasColumnName("UpdateTime");
            //                
            this.Property(t => t.RowHeight)
                .HasColumnName("RowHeight");
            //                
            this.Property(t => t.ColWidth)
                .HasColumnName("ColWidth");
            //                
            this.Property(t => t.Document)
                .HasColumnName("Document");
            //                
            this.Property(t => t.DataStorage)
                .HasColumnName("DataStorage");
            //                
            this.Property(t => t.Script)
                .HasColumnName("Script");
            //                
            this.Property(t => t.MobileLayout)
                .HasColumnName("MobileLayout");
            //                
            this.Property(t => t.CheckOut)
                .HasMaxLength(255)
                .HasColumnName("CheckOut");
            // Table & Column Mappings
            this.ToTable("WKF_Worksheet");


        }
    }
}